<?php

class Karaoke_Acl extends Zend_Acl
{
	public function __construct(Zend_Auth $auth)
	{
		$this->add(new Zend_Acl_Resource('index'));
		
		$this->addRole(new Zend_Acl_Role('guest'));
		$this->addRole(new Zend_Acl_Role('admin'), 'guest');
		
		$this->allow('admin'); // unrestricted
		
		$this->allow('guest', 'index');
	}
}